﻿<Window x:Class="BussinessMan.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" >
    <Canvas >

        <Image Source="body.png" Canvas.Left="117" Canvas.Top="36" Name="body">
        
        </Image>
        <Image Source="left.png" Canvas.Left="123" Canvas.Top="36" Name="leftArm">
            <Image.RenderTransform>
                <RotateTransform Angle="0" CenterX="25" CenterY="41">
                    
                </RotateTransform>
            </Image.RenderTransform>
            <Image.Triggers>
                <EventTrigger RoutedEvent="Image.Loaded">

                    <BeginStoryboard>
                        <Storyboard>

                            <!-- This animation animates the Rotation property of the RotateTransform
                       causing the 3D shape to rotate and wobble as the rotation angle and 
                       axis are animated. -->
                            <DoubleAnimation From="0" To="360" Duration="00:00:0.4"
            AutoReverse="False" 
            RepeatBehavior="Forever" 
                                             Storyboard.TargetName="leftArm"
            Storyboard.TargetProperty="(RenderTransform).(RotateTransform.Angle)" >
                                
                            </DoubleAnimation>

                        </Storyboard>

                    </BeginStoryboard>
                </EventTrigger>

            </Image.Triggers>

        </Image>
        <Image Source="right.png" Canvas.Left="162" Canvas.Top="36" Name="rightArm">
            <Image.RenderTransform>
                <RotateTransform Angle="0" CenterX="5" CenterY="41">

                </RotateTransform>
            </Image.RenderTransform>
            <Image.Triggers>
                <EventTrigger RoutedEvent="Image.Loaded">

                    <BeginStoryboard>
                        <Storyboard>

                            <!-- This animation animates the Rotation property of the RotateTransform
                       causing the 3D shape to rotate and wobble as the rotation angle and 
                       axis are animated. -->
                            <DoubleAnimation From="360" To="0" Duration="00:00:0.4"
            AutoReverse="False" 
            RepeatBehavior="Forever" 
                                             Storyboard.TargetName="rightArm"
            Storyboard.TargetProperty="(RenderTransform).(RotateTransform.Angle)" >

                            </DoubleAnimation>

                        </Storyboard>

                    </BeginStoryboard>
                </EventTrigger>

            </Image.Triggers>

        </Image>
        <Ellipse Width="5" Height="5" Fill="Red" Canvas.Left="148" Canvas.Top="81"></Ellipse>
        <Ellipse Canvas.Left="164" Canvas.Top="81" Fill="Red" Height="5" Width="5" />
    </Canvas>
</Window>
